package cn.crex1.xiaomi.dao;


import java.util.List;

import cn.crex1.xiaomi.core.orm.annotion.Query;
import cn.crex1.xiaomi.core.orm.annotion.ResultType;
import cn.crex1.xiaomi.pojo.Category;
import cn.crex1.xiaomi.pojo.Product;

/**
 * 分类查询
 */
public interface CategoryDao {
	//1查询所有分类查询
	@Query(sql = "select product_id,product_number,name,show_price,introduce,pic_img,create_time,update_time,page_title,page_description,remarks from os_product")
//	@Query(sql="select product_id,"
//			+ "product_number,"+ "name,show_price,"+ "introduce,"
//			+ "pic_img,"+ "create_time"+ ",update_time,"
//			+ "page_title,"+ "page_description,"+ "remarks "
//			+ " from os_product"+" where ? like '%$%' ")
	@ResultType(value = "List")
	List<Product>selectAllClassification(Product products);
}
